﻿Romance of Forgotten Kingdom Staff Roll Image File Format
---------------------------------------------------------

The image files do not actually compress image data.
They are actually a series of drawing commands, possibly
to draw directly to screen.


File Format:

Offset	Size	Description
0x00	0x04	Width
0x04	0x04	Height
0x08	0x04	Image Size
0x0C	Size	Image Commands

All values are in little Endian format.


Observed Image Commands:

Type 0:

These codes use a single command byte followed by a 2-byte
word argument.

	0x0A	Clear
			The argument is the length of data in bytes
			to be cleared.
			This possibly affects transparency.

	0x0B	Byte Literals
			The argument is the length of data in bytes
			that is literally copied to the output.

	0x0C	Word Literals
			The argument is the length of data in 4-byte
			words that is literally copied to the output.

Type 1:

These codes use a single byte.

	0x0D	Linefeed
			This will change the output
			position to the next image
			row.


Literal Data:

Literal data consists of 1-byte color indices.
